package com.example.dao.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import com.example.dao.entity.SysUser;
import tk.mybatis.mapper.common.Mapper;

public interface SysUserMapper extends Mapper<SysUser> {
	
	@ResultMap(value = "BaseResultMap")
	@Select("SELECT * FROM sys_user where user_name=#{username}")
	SysUser findByUsername(@Param("username") String username);
}